package band.wukong.practice.springboot.boot.web.exception;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 局部异常controller
 *
 * @author wukong(wukonggg@139.com)
 */
@RestController
@RequestMapping("/web/exception")
public class GlobalExceptionController {

    @RequestMapping("/global")
    @ResponseBody
    String index() {
        int i = 1 / 0;
        return null;
    }


}
